package com.snail.constants;

/**
 * @author Monica
 */
public class RedisConstants {

    public static final String SYS_USER_CAPTCHA = "user:captcha:";
    public static final long SYS_USER_CAPTCHA_TTL = 60;
    public static final String SYS_USER_PHONE = "user:phone:captcha:";
    public static final String SYS_USER_AUTHORIZATION = "user:authorization:";
    public static final String SYS_USER_REFRESH_TOKEN = "user:refreshToken:";
    public static final long SYS_USER_AUTHORIZATION_TTL = 1000 * 60 * 30;
    public static final long SYS_USER_REFRESH_TOKEN_TTL = 1000 * 60 * 60;
    // 邮箱验证码
    public static final String EMAIL_PREFIX = "email:reset:";
    // 记录连续登录失败五次
    public static final String SYS_LOGIN_FAIL_COUNT = "sys:login:fail:"; // 连续登录失败五次

    // 黑名单key
    public static final String SYS_BLACK_LIST = "sys:login:blacklist:";

    // 限流key
    public static final String FILE_SYS_RATE_LIMIT = "file:rate:limit:";


}
